package com.pactera.miyuangroup.db.entity;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.pactera.miyuangroup.db.enums.DeliveryType;

import java.io.Serializable;

/**
 * <p>
 * 车辆信息
 * </p>
 *
 * @author WangWu
 * @since 2018-04-24
 */
@TableName("t_vehicle_info")
public class VehicleInfo extends Model<VehicleInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	private String id;
    /**
     * 车牌号码
     */
	private String licensePlate;
    /**
     * 管辖区域
     */
	private String precinct;
    /**
     * 所属机构ID
     */
	private String organizationId;
    /**
     * 线路编号
     */
	private String lineNumber;
    /**
     * 线路名称
     */
	private String lineName;
    /**
     * 配送关系（固定、临时）
     */
	private DeliveryType relationship;
    /**
     * 调整日期
     */
	private Date adjustTime;
    /**
     * 生效时间（临时必填）
     */
	private Date effectTime;
    /**
     * 失效时间（临时必填）
     */
	private Date invalidTime;
    /**
     * 操作员ID
     */
	private String userId;
    /**
     * 原始ID
     */
	private String originalId;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLicensePlate() {
		return licensePlate;
	}

	public void setLicensePlate(String licensePlate) {
		this.licensePlate = licensePlate;
	}

	public String getPrecinct() {
		return precinct;
	}

	public void setPrecinct(String precinct) {
		this.precinct = precinct;
	}

	public String getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
	}

	public String getLineNumber() {
		return lineNumber;
	}

	public void setLineNumber(String lineNumber) {
		this.lineNumber = lineNumber;
	}

	public String getLineName() {
		return lineName;
	}

	public void setLineName(String lineName) {
		this.lineName = lineName;
	}

	public DeliveryType getRelationship() {
		return relationship;
	}

	public void setRelationship(DeliveryType relationship) {
		this.relationship = relationship;
	}

	public Date getAdjustTime() {
		return adjustTime;
	}

	public void setAdjustTime(Date adjustTime) {
		this.adjustTime = adjustTime;
	}

	public Date getEffectTime() {
		return effectTime;
	}

	public void setEffectTime(Date effectTime) {
		this.effectTime = effectTime;
	}

	public Date getInvalidTime() {
		return invalidTime;
	}

	public void setInvalidTime(Date invalidTime) {
		this.invalidTime = invalidTime;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getOriginalId() {
		return originalId;
	}

	public void setOriginalId(String originalId) {
		this.originalId = originalId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "VehicleInfo{" +
			"id=" + id +
			", licensePlate=" + licensePlate +
			", precinct=" + precinct +
			", organizationId=" + organizationId +
			", lineNumber=" + lineNumber +
			", lineName=" + lineName +
			", relationship=" + relationship +
			", adjustTime=" + adjustTime +
			", effectTime=" + effectTime +
			", invalidTime=" + invalidTime +
			", userId=" + userId +
			", originalId=" + originalId +
			"}";
	}
}
